package com.ysh.springcaptchademo.model;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@ConfigurationProperties(prefix = "captcha")
@Configuration
@Data
public class CaptchaProperties {
    //@Value("${captcha.width}")
    private Integer width;
    //@Value("${captcha.height}")
    private Integer height;

    private Session session;


    @Data
    public static class Session {
        private String key;
        private String date;
    }
}
